Filter
Loads a filter
and replaces the image of the imaG with an
image that has been dithered to the filter. If the image is a
palettized image and the imaG palette do not
contain some filter's color, the
closest colors of the palette are used .
Syntax: | imaG.Filter redarray() , greenarray() , bluearray() |
redarray() (integer array) | The redarray must be in the range 0 - 255 and contains 256 values for reds. |
greenarray() (integer array) | The greenarray must be in the range 0 - 255 and contains 256 values for greens. |
bluearray() (integer array) | The bluearray must be in the range 0 - 255 and contains 256 values for blues. |
WORKING MODE
X is a pixel in
the imaG's image and the color values for X are r , g , b in
the range 0 - 255 .
The filter will replace the values r , g , b with the values of
redarray(r) , greenarray(g) , bluearray(b).
And so on for each pixel in the imaG's image ...
If the imaG's image is a palettized image, ensure that the filter colors are in the palette or the closest colors of the palette will be used.
If MODE PROPERTY is NOT caModeDraw then an ERROR will be thrown.
See also Brightness , Contrast , Gamma , GrayScale